<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <f:view contentType="text/html">

        <h:head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title><ui:insert name="title" /></title>
            <link rel="stylesheet" type="text/css" href="#{request.contextPath}/resources/css/style.css" />
            <link rel="shortcut icon" href="#{request.contextPath}/resources/css/images/exam_small.jpg" />
        </h:head>

        <h:body>

            <div id="container">
                <h:form id="greetForm">
                    <div id="greeting">
                        <h:panelGroup rendered="#{userSessionBean.userLogIn}">
                            <h:outputLabel value="Welcome "/>
                            <h:outputText value="#{userSessionBean.name}"/>
                            <h:commandLink id="logout" value="Logout" action="#{userSessionBean.logout()}">    
                                <h:graphicImage  value="#{request.contextPath}/resources/css/images/logout.png" alt="" />
                            </h:commandLink>
                        </h:panelGroup>   
                    </div>
                </h:form>
                <div id="header">
                    <h1>
                        <ui:insert name="header" />
                    </h1>  
                </div>
                <div id="line" />
                <div id="menu">
                    <ui:insert name="menu" />
                </div>
                <div id="content">
                    <ui:insert name="content" />
                </div>
                <div id="footer">
                    <ui:insert name="footer" />
                </div>
            </div>
        </h:body>

    </f:view>
</html>